package com.bjut.dailyserver.dao;

import com.bjut.dailyserver.entity.TUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserDao extends JpaRepository<TUser, Long>, JpaSpecificationExecutor<TUser> {
    public TUser findByNameAndPassword (String name, String password);
    public TUser findByName(String name);
}
